home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / amiga / dynamic.c < prev    next >
C/C++ Source or Header  |  1997-09-09  |  1KB  |  52 lines

  1.  
  2. /*
  3.  *  DYNAMIC.C
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  *
  9.  *  dynamic function library support
  10.  */
  11.  
  12. #include <exec/types.h>
  13. #include <clib/dos_protos.h>
  14. #include <dynamic.h>        /*    from dinclude:pd/   */
  15. #include <stdio.h>
  16.  
  17. __regargs void *
  18. _GetHyperVar(varName)
  19. const char *varName;
  20. {
  21.     void *ptr = GetHyperSymbolTags(varName, TAG_END);
  22.     if (ptr == NULL)
  23.     fhprintf(Output(), "run time variable error: %s\n", varName);
  24.     return(ptr);
  25. }
  26.  
  27. __regargs void *
  28. _GetHyperFunc(funcName, funcType)
  29. const char *funcName;
  30. const char *funcType;
  31. {
  32.     void *ptr = GetHyperSymbolTags(funcName, DT_TYPE, funcType, TAG_END);
  33.     if (ptr == NULL)
  34.     fhprintf(Output(), "run time function error: %s\n", funcName);
  35.     return(ptr);
  36. }
  37.  
  38. __regargs
  39. _RelsHyperVar(ptr)
  40. void *ptr;
  41. {
  42.     RelsHyperSymbol(ptr, NULL);
  43. }
  44.  
  45. __regargs
  46. _RelsHyperFunc(ptr)
  47. void *ptr;
  48. {
  49.     RelsHyperSymbol(ptr, NULL);
  50. }
  51.  
  52.